<?php if ($gtAccount != NULL){ ?>
<!-- create array of projects for user to choose from-->
<!-- prepopulate fields using data received from controller-->
<?php

$projectOptions = array();
foreach($projects as $project){
    $projectOptions[$project['project_id']] =  $project['description'];
}


echo $this->Form->create('employee');
echo $this->Form->input('clock_in', array(
        'type' => 'radio',
        'options' => array('Clock Out', 'Clock In')
    ));
echo $this->Form->input('employee_id',array(
        'type' => 'text',
        'default' => $empId,
        'readonly' => 'readonly'
    ));
echo $this->Form->input('proj_id',array(
        'label' => 'Project',
        'type' => 'select',
        'options' => $projectOptions
    ));
echo $this->Form->end('Save');


?>
<?php } else{ ?>
<h1> Invalid Login </h1>
<?php }?>
